package com.loveprogrammer.eternity.task.event;

/**
 * @version 1.0.0
 * @description:
 * @author: eric
 * @date: 2022-09-16 18:01
 **/
public class MessageEvent implements BaseEvent {

    private String message;

    private int position = 1;

    public MessageEvent(String message,int position) {
        this.message = message;
        this.position = position;
    }

    @Override
    public Object content() {
        return message;
    }

    @Override
    public int position() {
        return position;
    }
}
